package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.OrderSetting;
import com.itheima.pojo.OrderSettingList;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.Date;
import java.util.List;

public interface OrderSettingListDao {
    public Integer findByPhoneNumberOrFileNumber(OrderSettingList orderSettingList);

    public void add(OrderSettingList orderSettingList);

    public void update(OrderSettingList orderSettingList);

    public void delete(@Param("id")Integer id);

    public OrderSettingList findById(@Param("id") int id);

    public List<OrderSettingList> findAll();

    public Page<OrderSettingList> findPage(@Param("queryString")String queryString);

    public void updateReservations(@Param("date") Date date);

    public void addType(@Param("id") Integer id, @Param("name") String name);
}
